package com.example.myproject.service;

import com.example.myproject.model.Right;
import com.example.myproject.model.Role;

import java.util.List;
import java.util.Set;

public interface RightService {

    Right assignRight(Right right);

    void removeRight(int id);

    Right getRight(String name);

    void assignRolesToUserByName(String userName, Set<String> roleNames);

    List<Role> getUserRoles(String userName);
}
